package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(100);not null;commit:账号"`
	Password string `gorm:"type:varchar(100);not null;commit:密码"`
}
type Author struct {
	gorm.Model
	Name   string `gorm:"type:varchar(100);not null;commit:名称"`
	Price  string `gorm:"type:decimal(10,2);not null;commit:价格"`
	Image  string `gorm:"type:varchar(500);not null;commit:图片"`
	UserId int64  `gorm:"type:int;not null;commit:用户Id"`
}
